Graphene has new API to check for equality, so we should use it instead
of doing a byte-by-byte comparison.
GskMatrixTransform *first = (GskMatrixTransform *) first_transform;
GskMatrixTransform *second = (GskMatrixTransform *) second_transform;
- /* Crude, but better than just returning FALSE */
- return memcmp (&first->matrix, &second->matrix, sizeof (graphene_matrix_t)) == 0;
+ if (graphene_matrix_equal_fast (&first->matrix, &second->matrix))
+ return TRUE;
+
+ return graphene_matrix_equal (&first->matrix, &second->matrix);
}
static const GskTransformClass GSK_TRANSFORM_TRANSFORM_CLASS =